package com.superatom.springboot.event;

import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

/**
 * 创建一个启动Spring boot的监听器
 */
public class MyApplicationStartingEventListener implements ApplicationListener<ApplicationStartingEvent>{
    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        System.out.println("-----调用ApplicationStartingEvent监听者-----");
    }
}
